import React from 'react';
import {Tools} from 'weaver-mobile';
import { DocumentTitle } from "weaver-mobile-page";

class App extends React.Component {
    componentDidMount() {

    }
    render() {
        // return <div className='collect'>{this.props.children}</div>;
        const datas = [
            { match: /^\/favouriteList/i, title: () => Tools.getLabel(2081,"收藏夹") },
            { match: /^\/selectDir/i, title: () => Tools.getLabel(388236,'收藏目录') },
        ];
        return (
            <div className='collect'>
                <DocumentTitle data={datas} defaultTitle={Tools.getLabel(2081,"收藏夹")} />
                {this.props.children}
            </div>
        );
    }
}

export default App;